Component({
    options: {
        styleIsolation: 'apply-shared'
    },
    properties: {
        imgHost: {
            type: String
        },
        data: {
            type: Object
        },
        index: { type: Number },
        tab_active: { type: Number },
        is_wholesaler: { type: Number }
    },
    methods: {
        /**倒计时改变事件 */
        onCountDownChange(e) {
            this.triggerEvent('onCountDownChange', {
                index: this.data.index,
                detail: e.detail
            })
        },
        /**倒计时结束 */
        countFinish(e) {
            this.triggerEvent('countFinish', {
                index: this.data.index
            })
        }
    }
})